<?php
/**
 * Created by PhpStorm.
 * User: lenovo
 * Date: 2016/9/27
 * Time: 22:12
 */
header('Content-type:text/html;charset=utf8');
?>
<html>
    <head>
        <style>
            table{background-color: #a0d3e8;border: none;align-content: center;width:600px;}
            tr{width: 600px;height: 50px;}
            td{width: 300px;height: 50px;}

        </style>
    </head>
    <body>
     <?php
     $year=2016;
     $result=(($year%4==0)&&($year%100==!0)||($year%400==0))?'是闰年':'不是闰年';
     $str="<table>";
     $str.="<tr><td colspan='3'><h2 align='center' >闰年的判断</h2></td></tr>";
     $str.="<tr><td>输入的年份:</td><td align='left'><input type='text' value='$year'></td></tr>";
     $str.="<tr><td>判断的结果：</td><td align='left'>$year".'年'."$result</td></tr>";

     echo $str;
?>
    </body>
</html>
